

import java.awt.Graphics;
import java.util.Vector;

import javax.swing.JPanel;

public class Workspace extends JPanel {
	private Vector<Chip> chips;
	private Vector<Wire> wires;
	private Chip chiptemp;
	
	@Override
	public void paint(Graphics g)
	{
		super.paint(g);
		
		for (int i = 0; i < chips.size(); i++)
		{
			chips.get(i).draw(g);
		}
	}
	
	public void addChip(Chip chipToAdd)
	{
		
	}
	
	public void addWire(Wire wireToAdd)
	{
		
	}
	
	public void addInput()
	{
		
	}
	
	public void addOutput()
	{
		
	}
	
	public void remove(WorkspaceObj a){
		
	}
	
	public void setChip(Chip chipIn){
		chiptemp = chipIn;
	}
	
	public Chip getChip(){
		return chiptemp;
	}
	
	public Workspace(){
		super();
		chips = new Vector<Chip>();
	}
}